<?php
use common\service\StaticService;
use common\service\GlobalUrlService;
use backend\assets\AdminAsset;
use common\service\CommonService;

StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/shop-order/index.js'),AdminAsset::class);
?>

<div class="layui-card">
    <div class="layui-card-header">供货单列表</div>
    <div class="layui-card-body">
        <div class="layui-form-item">
            <form class="layui-form" id="serch-form">
                搜索类型:
                <div class="layui-inline">
                    <select class="" tabindex="1" name="search_type">
                        <option value="">请选择搜索类型</option>
                        <option value="1">按手机号搜索</option>
                        <option value="2">按收货人搜索</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <input type="text" id="addressee_name" name="addressee_name" class="layui-input" value=""/>
                </div>
                订单状态:
                <div class="layui-inline">
                    <select class="span2 select" data-placeholder="Choose a Category" tabindex="1" name="order_status">
                        <option value="">请选择订单状态</option>
                        <option value="1">待付款</option>
                        <option value="2">待发货</option>
                        <option value="4">待收货</option>
                        <option value="5">退款中</option>
                        <option value="6">已完成</option>
                        <option value="7">已关闭</option>
                        <option value="8">拼团中</option>
                    </select>
                </div>
                <br/>
                下单时间:
                <div class="layui-inline">
                    <input type="text" id="start_time" name="start_time" class="layui-input" placeholder="开始时间" />
                </div>
                <div class="layui-inline">
                    <input type="text" id="end_time" name="end_time" class="layui-input" placeholder="截止时间" />
                </div>
                <div class="layui-inline">
                    <input type="submit" value="搜索" lay-submit lay-filter="serch-form" class="layui-btn">
                </div>
            </form>
        </div>
        <div class="layui-form-item">
            <table class="layui-hide" id="userTable" lay-filter="operation" lay-data="{id:'list'}"></table>
        </div>
    </div>
</div>

<script type="text/html" id="operation">
    <a class="layui-btn layui-btn-xs" lay-event="detail">查看</a>
</script>
